package demon4;

public class Dog extends Animal implements IFlying, IRunning,ISwimming{
    public Dog(String name, int age){
        super(name, age);
    }
    @Override
    public void eat() {
        System.out.println(this.name + "chibaba");
    }

    @Override
    public void fly() {
        System.out.println(this.name + "猪会飞");
    }

    @Override
    public void run() {
        System.out.println(this.name + "狗会跑");
    }

    @Override
    public void swim() {
        System.out.println(this.name + "购会游泳");
    }
}
